<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c"
           uri="http://java.sun.com/jsp/jstl/core" %>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <title>索引测试界面</title>

</head>
<body>
<c:set var="basePath" value="${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}" />

<h3>广告添加</h3>
<form action="${basePath}/searchIndex/index/addAdvertIndex" method="post">
    广告ID<input type="input" name="advertId" value="9999" /><br/>
    类型<input type="input" name="className" value="advert" /><br/>
    名称<input type="input" name="title" value="广告名称" /><br/>
    性别<input type="input" name="adType" value="homePic" /><br/>
    (1图  3图)<input type="input" name="coverType" value="1" /><br/>
    页码<input type="input" name="tutorName" value="爱莎" /><br/>
    课程链接<input type="input" name="coursePath" value="http://pic6.huitu.com/res/20130116/84481_20130116142820494200_1.jpg" /><br/>
    学习的人数<input type="input" name="learnNumber" value="4565" /><br/>
    (1大图 2小图)<input type="input" name="styleType" value="1" /><br/>
    标签<input type="input" name="label" value="课程" /><br/>
    性别<input type="input" name="sex" value="1" /><br/>
    图片json<input type="input" name="srcJson" value='["http://pic6.huitu.com/res/20130116/84481_20130116142820494200_1.jpg"]' /><br/>
    <input type="submit" value="添加广告索引数据">

</form>
<br/>
<br/>
<br/>
<h3>视频</h3>
<form action="${basePath}/searchIndex/index/addVideoIndex" method="post">
    视频ID<input type="input" name="videoId" value="212" /><br/>
    导师ID<input type="input" name="tutorId" value="10" /><br/>
    类型<input type="input" name="className" value="video" /><br/>
    修改时间<input type="input" name="updateDate" value="1492426413513" /><br/>
    图片json<input type="input" name="srcJson" value='["http://localhost:8081/attachment/kindeditor/2017/04/20170417170017129395.jpg"]' /><br/>
    性别<input type="input" name="sex" value="0" /><br/>
    导师头像<input type="input" name="tutorImg" value="http://xy.baoai.com:80/attachment/kindeditor/2016/12/20161220091803100978.jpg" /><br/>
    是否推荐<input type="input" name="recommend" value="1" /><br/>
    标题<input type="input" name="title" value="生活是一段一段的3333" /><br/>
    (1大图 2小图)<input type="input" name="styleType" value="1" /><br/>
    导师名字<input type="input" name="tutorName" value="爱莎" /><br/>
    标签id<input type="input" name="labelIdJson" value="[1,3,15]" /><br/>
    标签json<input type="input" name="labelJson" value='["两性情感","相处法则","情感危机"]' /><br/>
    频道id<input type="input" name="channelId" value="1" /><br/>
    频道名称<input type="input" name="channelName" value="挽回爱情" /><br/>
    创建时间<input type="input" name="createDate" value="1492419618000" /><br/>
    <input type="submit" value="添加视频索引数据">
</form>
<br/>
<br/>
<br/>
<h3>查询公共</h3>
<form action="${basePath}/searchIndex/index/queryCommonList" method="post">
    关键词<input type="input" name="searchText" value="" /><br/>
    类型<input type="input" name="className" value="" /><br/>
    性别<input type="input" name="sex" value="" /><br/>
    频道<input type="input" name="channel" value="" /><br/>
    页码<input type="input" name="pageIndex" value="1" /><br/>
    每页数量<input type="input" name="pageSize" value="10" /><br/>
    状态<input type="input" name="stateArray" value="" /><br/>
    <input type="submit" value="查询类型索引数据">
</form>
<br/>
<br/>
<br/>
<br/>
<h3>查询推荐</h3>
<form action="${basePath}/searchIndex/index/queryRecommend" method="post">
    是否推荐(推荐(1推荐、0不推荐、2、置顶）)<input type="input" name="recommend" value="0" /><br/>
    频道id<input type="input" name="channelId" value="" /><br/>
    页码<input type="input" name="pageIndex" value="1" /><br/>
    每页数量<input type="input" name="pageSize" value="10" /><br/>
    状态<input type="input" name="stateArray" value="" /><br/>
    <input type="submit" value="查询推荐索引数据">
</form>
<br/>
<br/>
<br/>
<br/>
<h3>删除所有数据</h3>
<form action="${basePath}/searchIndex/index/deleteAll" method="post">
    <input type="submit" value="删除所有数据">
</form>
<br/>
<br/>
<br/>
<br/>
<h3>删除单个数据</h3>
<form action="${basePath}/searchIndex/index/deleteAll" method="post">
    ID<input type="input" name="" value="10" /><br/>
    类型<input type="input" name="className" value="tutorId" /><br/>
    <input type="submit" value="删除所有数据">
</form>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
</body>
</html>
